package com.xebest.web.view;

import com.xebest.util.DateUtil;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;

/**
 * @desc: 查询售后单列表DTO
 * @author: chenjing
 * @createTime: 2017/6/21 0021 上午 10:00
 * @history:
 * @version:v1.0
 */
public class XeVenAfterSaleView {


    /**
     * 售后来源：1线上 2线下
     */
    private Integer afterSaleSource;

    /**
     * 售后单号
     */
    private String afterSalesCode;

    /**
     * userCode
     */
    private String userCode;

    /**
     * 创建时间
     */
    private String createDate;

    /**
     * 售后类型：1仅退款 2退款退货

     */
    private Integer afterSaleType;


    /**
     * 售后原因
     */
    private Integer afterSaleReason;

    /**
     * 售后状态 1待审核 2已审核 3审核中 4 已驳回 4 已作废
     */
    private int afterSaleStatus;

    /**
     * 售后说明
     */
    private String afterSaleRemark;

    /**
     * 客服审核状态 1待审核、2已审核、3已驳回
     */
    private  Integer serviceCheckStatus;


    /**
     * 采购审核状态 1待审核、2已审核、3已驳回
     */
    private Integer purchaseCheckStatus;


    /**
     * 财务审核状态 1待审核、2已审核、3已驳
     */
    private Integer financeCheckStatus;

    /**
     * 驳回原因
     */
    private String refusReason;

    /**
     * 订单号
     */
    private String orderId;

    /**
     * 退货仓库名称
     */
    private String storeName;
    /**
     * 客户账号
     */
    private String loginAccount;

    private Integer version;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;

    private String userId;

    /**
     * 差异金额 (页面已不用)
     */
    private BigDecimal differenceAmount;


    /**
     * 收货人
     */
    private String caConsignee;




    /**
     * 运费总金额
     */
    private BigDecimal freAmount;


    /**
     * 订单支付金额 = 订单总金额-运费总金额-优惠总金额 (已不用)
     */
    private BigDecimal payAmount;

    /**
     * 订单应收金额
     */

    private BigDecimal epayReceAmt;


    /**
     * 退款运费
     */
    private BigDecimal freRefundAmount;

    /**
     * 差异退款金额
     */
    private BigDecimal realRefundedAmount;

    /**
     * 作废原因
     */
    private String cancelReason;

    /**
     * 驳回人
     */
   private  String refusUser;
    /**
     * 作废人
     */
    private String cancelUser;

    /**
     * 订单明细差异金额之和
     */
    private BigDecimal differenceAmountDetail;

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getLoginAccount() {
        return loginAccount;
    }

    public void setLoginAccount(String loginAccount) {
        this.loginAccount = loginAccount;
    }

    public BigDecimal getEpayReceAmt() {
        return epayReceAmt;
    }

    public void setEpayReceAmt(BigDecimal epayReceAmt) {
        this.epayReceAmt = epayReceAmt;
    }

    public BigDecimal getFreRefundAmount() {
        return freRefundAmount;
    }

    public void setFreRefundAmount(BigDecimal freRefundAmount) {
        this.freRefundAmount = freRefundAmount;
    }

    public BigDecimal getRealRefundedAmount() {
        return realRefundedAmount;
    }

    public void setRealRefundedAmount(BigDecimal realRefundedAmount) {
        this.realRefundedAmount = realRefundedAmount;
    }

    public Integer getAfterSaleSource() {
        return afterSaleSource;
    }

    public void setAfterSaleSource(Integer afterSaleSource) {
        this.afterSaleSource = afterSaleSource;
    }

    public String getAfterSalesCode() {
        return afterSalesCode;
    }

    public void setAfterSalesCode(String afterSalesCode) {
        this.afterSalesCode = afterSalesCode;
    }

    public Integer getAfterSaleType() {
        return afterSaleType;
    }

    public void setAfterSaleType(Integer afterSaleType) {
        this.afterSaleType = afterSaleType;
    }

    public Integer getAfterSaleReason() {
        return afterSaleReason;
    }

    public void setAfterSaleReason(Integer afterSaleReason) {
        this.afterSaleReason = afterSaleReason;
    }

    public String getAfterSaleRemark() {
        return afterSaleRemark;
    }

    public void setAfterSaleRemark(String afterSaleRemark) {
        this.afterSaleRemark = afterSaleRemark;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(DateUtil.toDate(createDate));
    }

    public int getAfterSaleStatus() {
        return afterSaleStatus;
    }

    public void setAfterSaleStatus(int afterSaleStatus) {
        this.afterSaleStatus = afterSaleStatus;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }



    public String getCaConsignee() {
        return caConsignee;
    }

    public void setCaConsignee(String caConsignee) {
        this.caConsignee = caConsignee;
    }

    public BigDecimal getFreAmount() {
        return freAmount;
    }

    public void setFreAmount(BigDecimal freAmount) {
        this.freAmount = freAmount;
    }


    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public Integer getServiceCheckStatus() {
        return serviceCheckStatus;
    }

    public void setServiceCheckStatus(Integer serviceCheckStatus) {
        this.serviceCheckStatus = serviceCheckStatus;
    }

    public String getRefusUser() {
        return refusUser;
    }

    public void setRefusUser(String refusUser) {
        this.refusUser = refusUser;
    }

    public String getCancelUser() {
        return cancelUser;
    }

    public void setCancelUser(String cancelUser) {
        this.cancelUser = cancelUser;
    }

    public Integer getPurchaseCheckStatus() {
        return purchaseCheckStatus;
    }

    public void setPurchaseCheckStatus(Integer purchaseCheckStatus) {
        this.purchaseCheckStatus = purchaseCheckStatus;
    }


    public Integer getFinanceCheckStatus() {
        return financeCheckStatus;
    }

    public void setFinanceCheckStatus(Integer financeCheckStatus) {
        this.financeCheckStatus = financeCheckStatus;
    }

    public String getRefusReason() {
        return refusReason;
    }

    public void setRefusReason(String refusReason) {
        this.refusReason = refusReason;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public BigDecimal getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(BigDecimal refundAmount) {
        this.refundAmount = refundAmount;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public BigDecimal getDifferenceAmount() {
        return differenceAmount;
    }

    public void setDifferenceAmount(BigDecimal differenceAmount) {
        this.differenceAmount = differenceAmount;
    }

    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    public BigDecimal getDifferenceAmountDetail() {
        return differenceAmountDetail;
    }

    public void setDifferenceAmountDetail(BigDecimal differenceAmountDetail) {
        this.differenceAmountDetail = differenceAmountDetail;
    }
}
